
<?php 
$logindata = array('name' => 'openid_identifier',
					'value' => '',
					'style' => 'height: 12px');

$submitdata = array('name'=>'submit_login',
					'value'=> 'Login');

?>

<div id="login">
	<?php if(!isset($isLoggedIn) || !$isLoggedIn):?>
		<?php echo form_open('login/verify');?>
		<?php echo form_label("Sign in with ".anchor("https://www.myopenid.com/", "OpenID").": ");?>
		<?php echo form_input($logindata);?>
		<?php echo form_submit($submitdata);?>
		<?php echo form_close();?>
	<?php else: ?>
		<?php echo "Welcome back ".anchor('user/profile/userid/'. $this->session->userdata['userid'], $this->session->userdata['username']);?>
		<?php echo anchor('login/logout', img('images/icons/door_out.png'));?>
	<?php endif;?>
</div>